using UnityEngine;

public class Skill_Dash : Skill_Base
{
    [SerializeField] private float shardInDashDuration = 3f;
    public void OnStartEffect()
    {
        CreateSkill();
    }
    public void OnEndEffect()
    {
        CreateSkill();
    }
    private void CreateSkill()
    {
        if (Unlock(SkillUpgradeType.Dash_ShardOnStart)||Unlock(SkillUpgradeType.Dash_ShardOnStartAndArrival))
            skillManager.skillShard.CreateRawShard(shardInDashDuration);
        if (Unlock(SkillUpgradeType.Dash_CloneOnStart)||Unlock(SkillUpgradeType.Dash_CloneOnStartAndArrival))
            skillManager.skillTimeEcho.CreateTimeEcho();
    }
}
